import request from '@/utils/http'

export function getGoodAPI (id) {
  return request('/goods', 'GET', { id })
}

export const findHotGoods = ({ id, type, limit = 3 }) => {
  return request('/goods/hot', 'get', { id, type, limit })
}
